//
//  ST_PeculiarityModel.swift
//  btvideo
//
//  Created by mac on 2020/1/13.
//  Copyright © 2020 JarvanZhang. All rights reserved.
//

import UIKit
import SwiftyJSON
import HandyJSON


//将要发布
var willPushParentPeculiarity:ST_PeculiarityModel?

var willPushPeculiarity:ST_PeculiarityModel?

class ST_PeculiarityModel: NSObject,HandyJSON {

    var id = 0
    var name = ""
//    1 男 2 女
    var type = 1
    var descriptionStr = ""
    var intro = ""
    var recommend = 0
    var image = ""
    var register_image = ""
    var state = 0
    var own_num = 0
    var like_num = 0
    var sort = 0
    var pid = 0
    var create_time = ""
    var total = 0
    
    var remark = ""
    
    var children = Array<ST_PeculiarityModel>()
    
    var isSelected = false
    
    func mapping(mapper: HelpingMapper) {
           // specify 'description' field in json map to 'descriptionStr' property in object
           mapper <<<
               self.descriptionStr <-- "description"
            mapper <<<
                self.isSelected <-- "is_liked"
    }
    
    required override init() {
        super.init()
    }
    
//    MARK: - UI 相关 使用
    var authJson = JSON.null
    
}
